import request from '~/utils/resquest'

// 巡视计划
export const getPatrolPlanListGet = <T>(params: T) => {
  return request({ url: '/api/gxsaas-produce/patrolPlan/list', method: 'GET', params }) // 主列表
}

// 巡视任务->今日新增
export const getPlancreatedToday = <T>(params: T) => {
  return request({ url: '/api/gxsaas-produce/patrolPlan/createdToday', method: 'GET', params })
}

// 新增台区
export const postAddAreaListSelect = <T>(params: T) => {
  return request({ url: '/api/gxsaas-produce/patrolPlan/getCoursDetail', method: 'POST', params })
}

// 新增巡视计划
export const postAddPatrolsPlan = <T>(data: T) => {
  return request({ url: '/api/gxsaas-produce/patrolPlan/add', method: 'POST', data })
}
